package com.jiyun.controller;


import com.jiyun.om.entity.Vehicle;
import com.jiyun.service.IVehicleService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 汽车表 前端控制器
 * </p>
 *
 * @author zhx
 * @since 2025-02-13
 */
@RestController
@RequestMapping("/vehicle")
@Tag(name = "车辆管理")
public class VehicleController {
@Autowired
    private IVehicleService vehicleService;
@Operation(summary = "车辆动态下拉框")
    @RequestMapping("/findVehicle")
    public List<Vehicle> findVehicle()
    {

        return vehicleService.list();
    }
}
